package com.itlong.cloud.app.resource;

import com.itlong.cloud.POJO.VO.app.old.AppOldProjectVO;
import com.itlong.cloud.app.service.IAppOldProjectService;
import com.itlong.cloud.project.app.IAppOldProjectServiceClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 *<desc>
 *     旧版APP的项目信息接口代理实现类
 *</desc>
 *
 * @createDate 2017/10/18
 */
@RestController
public class AppOldProjectServiceResource implements IAppOldProjectServiceClient{

    @Autowired
    IAppOldProjectService iAppOldProjectService;


    /**
     * <desc>
     *     旧版APP_获取所有项目信息列表
     * </desc>
     * @param status 状态：0删除 1正常 2禁用
     * @return
     * @author cuiduanwu
     * @createDate 2017/10/18
     */
    @Override
    @RequestMapping(path = "/app/project/getAllProjectInfo",method = RequestMethod.POST)
    public List<AppOldProjectVO> getAllProjectInfo(@RequestParam("status") String status){
        return  iAppOldProjectService.getAllProjectInfo(status);
    }

}
